// 转为 rpx

import 'package:flutter_screenutil/flutter_screenutil.dart';

double rpx(double size) {
  return ScreenUtil().setWidth(size);
}

///字体大小
double setSp(double size) {
  return ScreenUtil().setSp(size);
}

/// 状态栏高度  刘海屏
double get getStatusBarHeight => ScreenUtil().statusBarHeight;

/// 获取设备宽度
double get getScreenWidth => ScreenUtil().screenWidth;

///获取设备高度
double get getScreenHeight => ScreenUtil().screenHeight;

class FPrint {
  ///判断是开发与生产环境
  final isProd = const bool.fromEnvironment('dart.vm.produce');
  FPrint(dynamic e) {
    if (!isProd) {
      // ignore: avoid_print
      print('开发-->$e');
    }
  }
}
